package com.firefly.mobile.app.util;


/**
 * 应用级异常
 *
 */
public class SytException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	private String code;

	private String msg;


	public SytException(SytException e) {
		this.code = e.getCode();
		this.msg = e.getMessage();
	}

	public SytException(String msg) {
		this.msg = msg;
	}
	
	public SytException(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	

	public SytException(int code, String msg) {
		this.code = ""+code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	
}
